package com.ngame.core.conf.data 
{
    public class BaseConf extends Object
    {
        public function BaseConf()
        {
            super();
            return;
        }

        public function parse(arg1:Object):void
        {
            var loc1:*=null;
            var loc2:*=null;
            var loc3:*=0;
            var loc4:*=arg1;
            for (loc1 in loc4) 
            {
                loc2 = this.parseProperites(loc1);
                this[loc2] = arg1[loc1];
            }
            return;
        }

        internal function parseProperites(arg1:String):String
        {
            var loc3:*=null;
            var loc4:*=null;
            var loc1:*=arg1.indexOf("_");
            if (loc1 == -1) 
            {
                return arg1.toLowerCase();
            }
            var loc2:*=arg1.toLowerCase();
            while (loc1 != -1) 
            {
                loc3 = loc2.charAt(loc1 + 1);
                loc4 = new RegExp("_" + loc3);
                loc2 = loc2.replace(loc4, loc3.toUpperCase());
                loc1 = loc2.indexOf("_");
            }
            return loc2;
        }
    }
}
